import {defineConfig} from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx'
import {resolve} from "path";

export default defineConfig({
  resolve: {
    alias: {
      '@formula/editor': resolve(__dirname, '../packages/editor/src/index'),
      '@formula/engine': resolve(__dirname, '../packages/engine/src/index'),
    },
  },
  plugins: [
    vue(),
    vueJsx(),
  ],
})
